/**
 * 添加商品（处理springboot+vue上传文件）
 */

import request from "@/request";

/**
 * 将前端上传的图片保存至后端
 * @param formData
 * @returns {*}
 */
export function upload(formData) {
    return request({
        url: '/merchant/commodity/add',
        method: 'post',
        headers: {"Content-Type": "multipart/form-data"},
        data: formData
    })
}

